package analyzemytime.utils;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

import org.joda.time.DateTime;

public class PrintReport {
	public static void PrintToFile(String content, String fileName)
	{
		BufferedWriter writer = null;
		try
		{	
			writer = new BufferedWriter(new FileWriter("reports\\"+fileName+".csv"));
			writer.write(content);
		}
		catch(IOException e)
		{
			
		}
		finally
		{
			try
			{
				if(writer != null)
				{
					writer.close();
				}
			}
			catch(IOException e){
				
			}
		}
		
	}
}
